import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../controllers/dd_guide_controller.dart';

class DDGuidePage extends StatefulWidget {
  const DDGuidePage({Key? key}) : super(key: key);

  @override
  State<DDGuidePage> createState() => _DDGuidePageState();
}

class _DDGuidePageState extends State<DDGuidePage> {
  DDGuideTabController _contorller = DDGuideTabController();

  @override
  Widget build(BuildContext context) {
    return GetBuilder<DDGuideTabController>(
        init: _contorller,
        initState: (state) {},
        dispose: (state) {},
        builder: (controller) {
          return Scaffold(
            body: Column(
              children: [
                Expanded(
                  child: Container(
                    child: PageView(
                      controller: controller.pageController,
                      children: controller.guideList.map((e) => e).toList(),
                      onPageChanged: (value) {
                        // controller.pageIndexChange(value);
                      },
                      physics: ClampingScrollPhysics(),
                    ),
                  ),
                ),
                // bottomBtnView(controller),
              ],
            ),
          );
        });
  }
}
